package com.wn.date20190814;

import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;

/**
 * 双色球
 * 
 * @author song
 *
 */
public class DoubbleColorBall
{
	public static void main(String[] args)
	{
		Set<Integer> redBalls = new TreeSet<Integer>();
		while (redBalls.size() < 6)
		{
			redBalls.add((int) (Math.random() * 33 + 1));
		}
		int blueball=(int)(Math.random()*33+1);
		System.out.println("红球：");
		redBalls.forEach(t->System.out.print(t+"\t"));
		System.out.println("蓝球："+blueball);
	}
}
